package com.luckmgr.service.impl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.common.entity.PageBean;
import com.common.service.BaseService;
import com.luckmgr.dao.CompanyMapper;
import com.luckmgr.dao.UserMapper;
import com.luckmgr.entity.db.Company;
import com.luckmgr.entity.db.User;
import com.luckmgr.service.UserService;


@Service
public class UserServiceImpl extends BaseService<User> implements UserService {
	
	UserMapper userMapper;
	
	@Resource(name="userMapper")
    public void initCompanyMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
        super.setBaseDao(userMapper);
    }
	
	@Override
	public User loginUser(String userName) {
		return userMapper.loginUser(userName);
	}

}